package com.gdyd.boot;

import com.gdyd.boot.config.MyConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 主程序类
 * @SpringBootApplication:这是一个SpringBoot应用
 */
@MapperScan("com.gdyd.boot.generator.mapper")
@SpringBootApplication
public class MainApplication {
    public static void main(String[] args) {
        //IOC容器
        ConfigurableApplicationContext run = SpringApplication.run(MainApplication.class, args);

        MyConfig myConfig = run.getBean(MyConfig.class);
        System.out.println(myConfig);
    }
}
